home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Aminet 47
/
Aminet 47 (2002)(GTI - Schatztruhe)[Feb 2002].iso
/
Aminet
/
misc
/
math
/
acalc.lha
/
Install
< prev
next >
Wrap
Text File
|
2001-11-24
|
6KB
|
185 lines
; $VER: ACalc Installer 1.0 (24.11.01) by Denis GOUNELLE
;
;-- Language specific string definitions --------------------------------------
; ENGLISH -----------------------------
(procedure english (
(set DOC_FNAME "ACalcEnglish.doc")
(set MSG_TODO "Select what you want to install")
(set TODO_PGM "ACalc program file")
(set TODO_DOC "ACalc documentation")
(set TODO_EURO "Set the EURO variable")
(set MSG_DIRACALC "Select in which drawer you want to install ACalc.")
(set MSG_CPACALC "Copying ACalc program file and icon.")
(set MSG_DIRDOC "Select in which drawer you want to install the documentation.")
(set MSG_CPDOC "Copying ACalc documentation.")
(set MSG_COUNTRY "Select your country in the list below" )
(set HLP_COUNTRY "Select the name of your country in the list : the right conversion rate for\
Euros will be automatically computed. If you can't find your country in the\
list, select 'Other'.\n\n" )
(set MSG_CONFIRM1 "The conversion rate for Euro will be set to:\n\n" )
(set MSG_CONFIRM2 "\n\nDo you agree ?\n\n(if no, you will be able to change it)" )
(set HLP_CONFIRM "Answer 'Yes' if you agree with the rate value, or 'No' if you don't.\n\n" )
(set MSG_ENTER "Enter the conversion rate between Euro and your locale currency,\n \
using a '.' character for the decimal point.\n\n")
(set MSG_CREATEVAR "Creating the EURO environment variable")
(set MSG_BYEBYE "Installation finished.")
(set MSG_BYE1 "\n\nThe program can be found in:\n")
(set MSG_BYE2 "\n\nThe documentation can be found in:\n")
(set MSG_BYE3 "\n\nThe EURO variable has been set to:\n")
))
; FRANÇAIS ----------------------------
(procedure français (
(set DOC_FNAME "ACalc.doc")
(set MSG_TODO "Choisissez ce que vous voulez installer")
(set TODO_PGM "Le programme ACalc")
(set TODO_DOC "La documentation de ACalc")
(set TODO_EURO "Créer la variable EURO")
(set MSG_DIRACALC "Choisissez dans quel répertoire vous souhaitez installer ACalc.")
(set MSG_CPACALC "Copie du programme ACalc et de son icône.")
(set MSG_DIRDOC "Choisissez dans quel répertoire vous souhaitez installer la documentation.")
(set MSG_CPDOC "Copie de la documentation de ACalc.")
(set MSG_COUNTRY "Sélectionnez votre pays dans la liste ci-dessous" )
(set HLP_COUNTRY "Sélectionnez le nom de votre pays dans la liste : le taux de conversion vers l'Euro\
sera automatiquement calculé. Si vous ne trouvez pas votre pays dans la liste,\
choisissez 'Other'.\n\n" )
(set MSG_CONFIRM1 "Le taux de conversion vers l'Euro va être fixé à :\n\n" )
(set MSG_CONFIRM2 "\n\nEtes-vous d'accord ?\n\n(si non, vous allez pouvoir le changer)" )
(set HLP_CONFIRM "Répondez 'Oui' si vous acceptez la valeur proposée, ou 'Non' si cette valeur ne convient pas.\n\n" )
(set MSG_ENTER "Saisissez le taux de conversion entre l'Euro et votre monnaie,\n\
en utilisant un '.' (point) pour séparer les chiffres après la virgule.\n\n" )
(set MSG_CREATEVAR "Création de la variable d'environnement 'EURO'")
(set MSG_BYEBYE "Installation terminée.")
(set MSG_BYE1 "\n\nLe programme a été installé dans :\n")
(set MSG_BYE2 "\n\nLa documentation a été installée dans :\n")
(set MSG_BYE3 "\n\nLa variable EURO a été initialisée a :\n")
))
;------------------------------------------------------------------------------
(procedure saisie (
(set rate (askstring
(prompt MSG_ENTER)
(help MSG_ENTER @askstring-help)
(default rate)
)
)
))
;------------------------------------------------------------------------------
;
(if (= @language "français") (français) (english))
(set byebye MSG_BYEBYE)
;
; ask what to do
;
(set todo
(askoptions
(prompt MSG_TODO)
(help @askoptions-help)
(choices TODO_PGM TODO_DOC TODO_EURO)
)
)
;
; install ACalc
;
(if (BITAND todo 1)
(
(set acalcdir
(askdir
(prompt MSG_DIRACALC)
(help @askdir-help)
(default "SYS:WBStartup")
))
(copyfiles
(prompt MSG_CPACALC)
(source "ACalc")
(dest acalcdir)
(infos)
)
(set byebye (cat byebye MSG_BYE1 acalcdir))
)
)
;
; install the documentation
;
(if (BITAND todo 2)
(
(set docdir
(askdir
(prompt MSG_DIRDOC)
(help @askdir-help)
(default acalcdir)
)
)
(copyfiles
(prompt MSG_CPDOC)
(source DOC_FNAME)
(dest docdir)
(infos)
)
(set byebye (cat byebye MSG_BYE2 docdir))
)
)
;
; create the EURO variable
;
(if (BITAND todo 4)
(
;
; ask for the country name
;
(set country
(askchoice
(prompt MSG_COUNTRY)
(help HLP_COUNTRY @askchoice-help)
(choices "Austria" "Belgium" "Eire" "Finland" "France" "Germany" "Greece" "Holland" "Italy" "Luxembourg" "Portugal" "Spain" "Other")
)
)
;
; set the conversion rate
;
(set rate "")
(select country
(set rate "13.7603" ) ; austria
(set rate "40.3399" ) ; belgium
(set rate "0.787564" ) ; eire
(set rate "5.94573" ) ; finland
(set rate "6.55957" ) ; france
(set rate "1.95583" ) ; germany
(set rate "340.750" ) ; greece
(set rate "2.20371" ) ; holland
(set rate "1936.27" ) ; italy
(set rate "40.3399" ) ; luxembourg
(set rate "200.482" ) ; portugal
(set rate "166.386" ) ; spain
(set rate (saisie) ) ; other
)
;
; ask for confirmation
;
(while
(NOT (askbool
(prompt MSG_CONFIRM1 rate MSG_CONFIRM2)
(help HLP_CONFIRM @askbool-help)
(default 1)
))
(saisie)
)
;
; create the EURO variable
;
(textfile
(prompt MSG_CREATEVAR )
(dest "ENVARC:EURO" )
(append (cat rate "\n") )
)
(set byebye (cat byebye MSG_BYE3 rate))
)
)
;
; exit
;
(set @default-dest acalcdir)
(exit byebye (quiet) )
;